flatMap

open override fun <R> flatMap(transform: (Nothing) -> Try<R>): Try<R>

Maps value of a Success to a new Try using transform or returns the same Try if this is a Failure.

Return

Try returned by transform or this object if this is a Failure.

Parameters

transform

Function transforming value of a Success to a Try.